package com.quwan.manager.controller.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Hayson
 * @since 2021/7/5 22:20
 */
@Data
@Accessors(chain = true)
public class MemberDTO {
    @ApiModelProperty("用户id")
    private long id;
    @ApiModelProperty("主键id")
    private long autoId;
    @ApiModelProperty("真实名称")
    private String name;
    @ApiModelProperty("昵称")
    private String nickName;
    @ApiModelProperty("手机号")
    private String mobile;
    @ApiModelProperty("城市/地区")
    private String area;
    @ApiModelProperty("系统")
    private Integer source;
    @ApiModelProperty("下级人数")
    private int lowerLevel;
    @ApiModelProperty("推荐人")
    private String recommendPerson;
    @ApiModelProperty("余额")
    private BigDecimal balance = BigDecimal.ZERO;
    @ApiModelProperty("充币总额")
    private BigDecimal rechargeMoney = BigDecimal.ZERO;
    @ApiModelProperty("充卡总额")
    private BigDecimal rechargeCardMoney = BigDecimal.ZERO;
    @ApiModelProperty("提现总额")
    private BigDecimal operateMoney = BigDecimal.ZERO;
    @ApiModelProperty("支出总额")
    private BigDecimal consumeMoney = BigDecimal.ZERO;
    @ApiModelProperty("收入总额")
    private BigDecimal incomeMoney = BigDecimal.ZERO;
    @ApiModelProperty("下级返佣")
    private BigDecimal commission = BigDecimal.ZERO;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty("注册时间")
    private LocalDateTime addTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty("最后登录时间")
    private LocalDateTime lastVisitTime;
    @ApiModelProperty("状态：0正常，1禁用")
    private int status;
    @ApiModelProperty("备注")
    private String remarks;
    @ApiModelProperty("人脸图片")
    private String faceUrl;
    @ApiModelProperty("审核状态 -1审核不通过 0未认证 1审核中 2已认证")
    private int faceStatus;
    @ApiModelProperty("用户发布过的技能分类")
    private List<String> cate;

    @ApiModelProperty("身份证图片")
    private List<String> idUrls;

    @ApiModelProperty("身份证号码")
    private String identity;
    @ApiModelProperty("身份认证状态")
    private Integer idStatus;
}
